home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000035_fdc@columbia.edu_Tue Dec 2 12:23:22 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: wierd scripting query via telnet
Date: 2 Dec 2003 17:20:33 GMT
Organization: Columbia University
Lines: 23
Message-ID: <slrnbspif1.1lh.fdc@sesame.cc.columbia.edu>
References: <e516d9ec.0312020211.2fa9cb80@posting.google.com> <slrnbsp9gn.bcn.fdc@sesame.cc.columbia.edu> <m18ylvfab7.gnus@usa.net>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1070385633 19786 128.59.59.56 (2 Dec 2003 17:20:33 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 2 Dec 2003 17:20:33 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14711
In article <m18ylvfab7.gnus@usa.net>,
those who know me have no need of my name wrote:
: in comp.protocols.kermit.misc i read:
:>At this point all the characters that arrived (except NULs) are in the
:>Kermit variable \v(input).
:
:>To pass the value back to bash, you could write it out to a file.
:
: or perhaps capture it via command substitution:
:
: var=$(/path/to/kermit_script)
:
If you had the Kermit script echo the material to stdout and then exit,
and then you invoked the script from the Unix shell like this:
export var=`somepath/kermit_script`
it would assign some stuff to $var but (a) you'd have to configure Kermit
not to emit any extraneous messages (heralds, messages from init file, etc)
and (b) the resulting text is likely to be "edited", e.g. by the removal
of linebreaks.
- Frank